<template>
  <el-container style="height: 100vh;">
    <el-aside :width="isCollapse ? '64px' : '240px'" class="sidebar-aside">
      <NavBar v-model:isCollapse="isCollapse" />
    </el-aside>
    <el-container>
      <el-main>
        <router-view />
      </el-main>
    </el-container>
  </el-container>
</template>

<script setup>
import { ref } from 'vue'
import NavBar from '../components/NavBar.vue'
const isCollapse = ref(true)
</script>

<style scoped>
.sidebar-aside {
  transition: width .25s ease;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(6px);
  border-right: none;
  box-shadow: none;
}

@supports not (backdrop-filter: blur(6px)) {
  .sidebar-aside { background: #ffffff; }
}

</style>
